/**
 * Created with JetBrains WebStorm.
 * User: wonka
 * Date: 10/26/13
 * Time: 10:12 PM
 * To change this template use File | Settings | File Templates.
 */
runAnimtion(function(){
var paper = Raphael(10, 50, 320, 200);
var anim = Raphael.animation({cx: 10, cy: 20}, 2e3);
var circle1 = paper.circle(30,10,10);
var circle2 = paper.circle(50,20,20);
circle1.animate(anim); // run the given animation immediately
circle2.animate(anim.delay(5000)); // run the given animation after 500 ms
} )             ;